package com.woniuxy.oa.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.oa.entity.AttendanceSet;
import com.woniuxy.oa.mapper.AttendanceSetMapper;
import com.woniuxy.oa.service.AttendanceSetService;

@Service("attendanceSetService")
public class AttendanceSetServiceImpl implements AttendanceSetService{
	
	@Autowired
	AttendanceSetMapper attendanceSetMapper;
	
	
	public void setAttendanceSetMapper(AttendanceSetMapper attendanceSetMapper) {
		this.attendanceSetMapper = attendanceSetMapper;
	}

	@Override
	public Integer modifyAttendanceSet(AttendanceSet attendanceSet) {
		Integer result = attendanceSetMapper.updateAttendanceSet(attendanceSet);
		return result;
	}

	@Override
	public AttendanceSet getAttendanceSetInfo() {
		AttendanceSet attendanceSetInfo = attendanceSetMapper.selectAttendanceSet();
		return attendanceSetInfo;
	}

}
